#ifndef __MY_DEFINE_H__
#define __MY_DEFINE_H__

#define KHZ 1000
#define MHZ 1000000

typedef struct machine_s
{
    double pwm1_duty;
    double pwm2_duty;
    double pwm3_duty;
    double pwm4_duty;
    double pwm5_duty;
    double pwm6_duty;
    double pwm7_duty;
    double pwm8_duty;

    double pwm1_freq;
    double pwm2_freq;
    double pwm3_freq;
    double pwm4_freq;
    double pwm5_freq;
    double pwm6_freq;
    double pwm7_freq;
    double pwm8_freq;
    
    int add_sub_flag;
}machine_t;

extern machine_t machine;

#endif
